<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    //用户列表
    $router->resource('users', 'TongUserController');
    //商品列表
    $router->resource('goods', 'TongGoodController');
    //商品套餐
    //$router->resource('goodspack', 'TongGoodPackController');
    $router->resource('goodsgroup', 'TongGoodsGroupController');
    //订单列表
    $router->resource('orderList', 'TongOrderController');
    $router->resource('daikaifa', 'DaikafaController');
    //提现列表
    $router->resource('withdrawal', 'TongUserWithdrawalController');
    //账单流水
    $router->resource('userflow', 'TongUserProfitController');
    //素材列表
    $router->resource('tongsource', 'TongSourceContentController');
    //分类列表
    $router->resource('goodscate', 'TongGoodsCateController');
    //用户充值
    $router->resource('userrecharge', 'TongUserRechargeController');
    //申请店铺
    $router->resource('applystore', 'TongUserApplyStoreController');
    //系统消息
    $router->resource('systemnotice', 'TongSystemNoticeController');
    //轮播图
    $router->resource('carouse', 'TongCarouselController');
    //用户变更
    $router->resource('useropera', 'TongUserOperaController');
    //内容管理
    $router->resource('content', 'TongContentController');
    //业绩
    $router->resource('monthmoney', 'TongUserMonthMoneyController');

});
